Ubuntu 14.04
Sponsored Link

Install MediaWiki
2016/02/03
 
Install Wiki System MediaWiki.
[1]
[2]
[3] Create a database for MediaWiki.
root@www:~#
mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.44-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

# create "mediawiki" databse (set any password for "password" section)

MariaDB [(none)]>
create database mediawiki;

Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on mediawiki.* to mediawiki@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
exit

Bye
[4] Install MediaWiki.
( Make sure and Download the latest one ⇒ https://www.mediawiki.org/wiki/Download/en )
root@www:~#
apt-get -y install php5-mysqlnd
root@www:~#
curl -O https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz

root@www:~#
tar zxvf mediawiki-1.26.2.tar.gz

root@www:~#
mv mediawiki-1.26.2 /var/www/html/mediawiki

root@www:~#
chown -R www-data. /var/www/html/mediawiki

root@www:~#
/etc/init.d/apache2 restart

* Restarting web server apache2
...done.
[5] Access to "http://(server's hostname or IP address)/mediawiki/mw-config/" and configure final settings.
[6] Scroll down to the bottom of the page and Click "Continue".
[7] Input Database infomation for MediaWiki to connect.
[8] It's OK with default.
[9] Set Wiki name and admin username.
[10] Click "Continue".
[11] Click "Continue".
[12] Setting up completed. Download "LocalSettings.php" and place it under "mediawiki" directory on your server.
[13] This is the index page of MediaWiki. Try to use it.
 
Tweet